import {crowd} from "@/api/crowdapi.js";

export let crowdstore={
    module:{

    },
    state:{
        arr:[]
    },
    getters:{

    },
    mutations:{
        getcrowd(state,payload){
            state.arr=payload
            // console.log(state.arr)
        }
    },
    actions:{
        sends(store){
            crowd("/api/xiaomipro/goods/crowd2").then((ok)=>{  
                 
                store.commit("getcrowd",ok.data.crowd)
            })
        }
    },
}